package com.hfzy.ihk.web.oauth.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hfzy.ihk.facade.userCenter.entity.Resource;
import com.hfzy.ihk.facade.userCenter.entity.UserInfo;
import com.hfzy.ihk.facade.userCenter.service.IUserService;

import com.hfzy.ihk.web.oauth.server.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用于集成spring security 服务实现类
 * </p>
 *
 * @author wws
 * @since 2018-12-28
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserInfo> implements IUserService {


    @Override
    public UserInfo findUserByUserName(String username) {
        return baseMapper.queryUserInfoByUserName(username);
       // return baseMapper.findUserByUserName(username);
    }

    public List<Resource> querybtnPermissionByUserName(String username){
        return baseMapper.querybtnPermissionByUserName(username);
    }


}
